V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MarioLuisGarcia
V2EX  ›  分享发现

写了一个脚本,自动化执行一系列操作,最后删除临时文件的时候忘了给自己加免死金牌。

  •  
  •   MarioLuisGarcia · 2014-08-12 21:14:44 +08:00 · 2641 次点击
    这是一个创建于 3546 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我真没想到它能把自己给删了。。。。。。。
    这只 shell 脚本真狠
    8 条回复    2014-08-14 13:49:42 +08:00
    whywhywhy
        1
    whywhywhy  
       2014-08-12 21:27:14 +08:00
    del %0
    akfish
        2
    akfish  
       2014-08-12 21:30:31 +08:00   ❤️ 2
    lz必然是把脚本压迫得太惨,以至于它厌世自杀了。
    Tink
        3
    Tink  
       2014-08-12 23:10:47 +08:00
    之前在人人网上看到一个 rm -rf * .log
    harryert
        4
    harryert  
       2014-08-12 23:53:35 +08:00
    @akfish 赞,我也这么觉得。
    liuchen9586
        5
    liuchen9586  
       2014-08-12 23:54:29 +08:00
    @Tink 某个软件的卸载事故?
    orzfly
        6
    orzfly  
       2014-08-12 23:57:36 +08:00
    https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issues/123

    > An extra space at line 351:
    > rm -rf /usr /lib/nvidia-current/xorg/xorg
    >
    > causes the install.sh script to do an rm -rf on the /usr directory for people installing in ubuntu.
    > Totally uncool dude!!! The script deletes everything under /usr. I just had to reinstall linux on my pc to recover.
    Tink
        7
    Tink  
       2014-08-13 00:02:15 +08:00
    @liuchen9586 *和.log中间有一个空格
    jemyzhang
        8
    jemyzhang  
       2014-08-14 13:49:42 +08:00
    @orzfly 太赞了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   957 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 19:26 · PVG 03:26 · LAX 12:26 · JFK 15:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.