[CentOS] check, that a script is in a folder
S Mathias
smathias1972 at yahoo.comWed Jan 5 10:26:12 UTC 2011
- Previous message: [CentOS] Compiling thunderbird
- Next message: [CentOS] check, that a script is in a folder
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$ echo ${PWD##*/} somefolder $ if "${PWD##*/}" -eq "asdf" > /dev/null; then echo "this is the asdf folder"; else exit 1; fi bash: notthatfolder: command not found... this is the asdf folder $ So i just want to check that i'm in an exact folder. e.g.: "asdf" What's wrong with my one-liner? I just want to check, that a script is in a folder, and if it isn't, then it exits
- Previous message: [CentOS] Compiling thunderbird
- Next message: [CentOS] check, that a script is in a folder
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list