Results 1 to 7 of 7
  1.    #1  
    so.. I messed up on a code.
    I did make a copy using this code:
    cp /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.jsjsjs /$usr$/$lib$/$luna$/$system$/$luna$-$systemui$/$app$/$controllers$/$bar$-$assistant$.$js$.$bak$
    My question is how to revert back the original "bar-assistant.jsjsjs.$bak$&$quot$;?

    please help!
  2.    #2  
    well.... I figured it out myself... again.

    For those who are looking for the same answer.. here is how I did it:

    when backing a file up, you type this:
    cp /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.jsjsjs /$usr$/$lib$/$luna$/$system$/$luna$-$systemui$/$app$/$controllers$/$bar$-$assistant$.$js$.$bak$
    ^^Notice how you are backing up the file "bar-assistant.jsjsjs&$quot$; $and$ $renaming$ $it$ $to$ &$quot$;$bar$-$assistant$.$js$.bak"

    if you are refreshing your coding memory like myself or simply dont yet know.. that "CP" command in the beginning of the line - means "copy"

    So, to revert back the copied file that's now named "bar-assistant.jsjsjs.bak", all you have to do is type this:
    cp /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.jsjsjs.$bak$ /$usr$/$lib$/$luna$/$system$/$luna$-$systemui$/$app$/$controllers$/$bar$-$assistant$.$js$
    ^^Notice how now you are taking the file "bar-assistant.jsjsjs.bak" and coping it into the same folder with the new name "bar-assistant.jsjsjs&$quot$;.. $thus$ $taking$ $the$ $backed$ $up$ $version$ $of$ $the$ $original$ $code$ $and$ $replacing$ $it$ $with$ $the$ $code$ $that$ $you$ $may$ $have$ $screwed$ $up$ $like$ $I$ $have$.

    Happy coding, everyone.
  3.    #3  
    and here is what I was trying to do, which now I did successfully... see attached.
    Attached Images Attached Images
  4. #4  
    Hey congrats on getting it to work :-)
    aka lunareclipse
    You can find me here:
    Pre Themes
  5.    #5  
  6. bdubbx's Avatar
    133 Posts
    Global Posts
    136 Global Posts
    thanks for this...I haven't had to do it just yet, but I'm sure the day will come!
  7. #7  
    Me too!

Posting Permissions