Update pblog script.
This commit is contained in:
parent
1f3dfd0dbf
commit
0d3467eeea
@ -20,16 +20,15 @@ remove_file() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# -ne 2 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
|
open_file "$1"
|
||||||
|
exit 0
|
||||||
|
elif [ $# -ne 2 ]; then
|
||||||
echo "You need to provide action and file name."
|
echo "You need to provide action and file name."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
edit)
|
|
||||||
open_file "$2"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
rm)
|
rm)
|
||||||
remove_file "$2"
|
remove_file "$2"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user