Skip to content

Commit

Permalink
make sure variable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed May 19, 2020
1 parent 66986ce commit 174f6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mkramdisk
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ umount_ramdisk() {
# move current ramdisk to a new location
mount --bind $disk $ram
umount $disk
rm -rf $disk/* $disk/.??* || true
rm -rf ${disk:?}/* ${disk:?}/.??* || true
cp -a $ram/. $disk/. # copy ramdisk contents to disk
umount $ram
[ X$debug = X1 ] && echo "Ramdisk on $disk umounted"
Expand Down

0 comments on commit 174f6ea

Please sign in to comment.